Developer Documentation
PATH  Mac OS X Documentation > Developer Tools > Mac OS X Assembler Guide


Previous | Contents | Next

Trap Mnemonics

Like the branch-on-condition mnemonics above, the trap operator also has extended mnemonics which encode the numeric TO field as follows:

Code
Meaning
TO encoding

lt

Less than

16

le

Less than or equal

20

eq

Equal

4

ge

Greater than or equal

12

gt

Greater than

8

nl

Not less than

12

ne

Not equal

24

ng

Not greater than

20

llt

Logically less than

2

lle

Logically less than or equal

6

lge

Logically greater than or equal      

5

lgt

Logically greater than

1

lnl

Logically not less than

5

lng

Logically not greater than

6

(none)      

Unconditional

31

The condition is indicated from the third letter of the extended mnemonics in the table below:

Trap Type
64-bit comparison
32-bit-comparison
tdi
td
twi
tw
Immediate
Register
Immediate
Register

unconditional

-

-

-

trap

if less than

tdlti

tdlt

twlti

twlt

if less than or equal

tdlei

tdle

twlei

twle

if equal

tdeqi

tdeq

tweqi

tweq

if greater than or equal

tdgei

tdge

twgei

twge

if greater than

tdgti

tdgt

twgti

twgt

if not less than

tdnli

tdnl

twnli

twnl

if not equal

tdnei

tdne

twnei

twne

if not greater than

tdngi

tdng

twngi

twng

if logically less than

tdllti

tdllt

twllti

twllt

if logically less than or equal

tdllei

tdlle

twllei

twlle

if logically greater than or equal      

tdlgei      

tdlge      

twlgei      

twlge

if logically greater than

tdlgti

tdlgt

twlgti

twlgt

if logically not less than

tdlnli

tdlnl

twlnli

twlnl

if logically not greater than

tdlngi

tdlng

twlngi

twlng


Mac OS X Assembler Reference: PowerPC Addressing Modes and Assembler Instructions

Previous | Contents | Next